package edu.lnu.ums.entities;

import javax.persistence.Column;
import javax.persistence.Entity;

import edu.lnu.ums.entities.core.UMSObject;
import edu.lnu.ums.entities.processes.ExpendituresProcess;
import javax.persistence.CascadeType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Institution extends UMSObject {

    private static final long serialVersionUID = 1L;
    @Column
    private String adress;

    @Column
    private String fullName;

    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn
    private Human boss;

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public Human getBoss() {
        return boss;
    }

    public void setBoss(Human boss) {
        this.boss = boss;
    }
    
    public Class<?> getExpendituresProcClass() {
        return ExpendituresProcess.class;
    }

}
